Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JetStream server stats #227

Merged
merged 1 commit into from
Jan 8, 2025
Merged

Add JetStream server stats #227

merged 1 commit into from
Jan 8, 2025

Conversation

mtmk
Copy link
Contributor

@mtmk mtmk commented Dec 14, 2024

see also #179 (partially addressed)

@mtmk
Copy link
Contributor Author

mtmk commented Dec 14, 2024

Example output:

nats_core_jetstream_server_jetstream_disabled{cluster_name="C1",server_id="NCZLDR5HBN5IH5UED6D4DQQWTBK2DDAE3AYVFWDM6AK74EW3HOEBI2KR",server_name="n3"} 0
nats_core_jetstream_server_jetstream_disabled{cluster_name="C1",server_id="NDHM47AD5WGBOLQEFVYH2OB44SVQNYGQVYL7HCZY5VNA3ACHYUO2RIWN",server_name="n2"} 0
nats_core_jetstream_server_jetstream_disabled{cluster_name="C1",server_id="NDILCX72GJKVF23V3XXN7MQUYDPTLODREBBIURYBD4JVGSCFTGHLLPUH",server_name="n1"} 0
nats_core_jetstream_server_max_memory{cluster_name="C1",server_id="NCZLDR5HBN5IH5UED6D4DQQWTBK2DDAE3AYVFWDM6AK74EW3HOEBI2KR",server_name="n3"} 2.5165971456e+10
nats_core_jetstream_server_max_memory{cluster_name="C1",server_id="NDHM47AD5WGBOLQEFVYH2OB44SVQNYGQVYL7HCZY5VNA3ACHYUO2RIWN",server_name="n2"} 2.5165971456e+10
nats_core_jetstream_server_max_memory{cluster_name="C1",server_id="NDILCX72GJKVF23V3XXN7MQUYDPTLODREBBIURYBD4JVGSCFTGHLLPUH",server_name="n1"} 2.5165971456e+10
nats_core_jetstream_server_max_storage{cluster_name="C1",server_id="NCZLDR5HBN5IH5UED6D4DQQWTBK2DDAE3AYVFWDM6AK74EW3HOEBI2KR",server_name="n3"} 1.099511627776e+12
nats_core_jetstream_server_max_storage{cluster_name="C1",server_id="NDHM47AD5WGBOLQEFVYH2OB44SVQNYGQVYL7HCZY5VNA3ACHYUO2RIWN",server_name="n2"} 1.099511627776e+12
nats_core_jetstream_server_max_storage{cluster_name="C1",server_id="NDILCX72GJKVF23V3XXN7MQUYDPTLODREBBIURYBD4JVGSCFTGHLLPUH",server_name="n1"} 1.099511627776e+12
nats_core_jetstream_server_total_consumers{cluster_name="C1",server_id="NCZLDR5HBN5IH5UED6D4DQQWTBK2DDAE3AYVFWDM6AK74EW3HOEBI2KR",server_name="n3"} 0
nats_core_jetstream_server_total_consumers{cluster_name="C1",server_id="NDHM47AD5WGBOLQEFVYH2OB44SVQNYGQVYL7HCZY5VNA3ACHYUO2RIWN",server_name="n2"} 0
nats_core_jetstream_server_total_consumers{cluster_name="C1",server_id="NDILCX72GJKVF23V3XXN7MQUYDPTLODREBBIURYBD4JVGSCFTGHLLPUH",server_name="n1"} 0
nats_core_jetstream_server_total_message_bytes{cluster_name="C1",server_id="NCZLDR5HBN5IH5UED6D4DQQWTBK2DDAE3AYVFWDM6AK74EW3HOEBI2KR",server_name="n3"} 0
nats_core_jetstream_server_total_message_bytes{cluster_name="C1",server_id="NDHM47AD5WGBOLQEFVYH2OB44SVQNYGQVYL7HCZY5VNA3ACHYUO2RIWN",server_name="n2"} 0
nats_core_jetstream_server_total_message_bytes{cluster_name="C1",server_id="NDILCX72GJKVF23V3XXN7MQUYDPTLODREBBIURYBD4JVGSCFTGHLLPUH",server_name="n1"} 0
nats_core_jetstream_server_total_messages{cluster_name="C1",server_id="NCZLDR5HBN5IH5UED6D4DQQWTBK2DDAE3AYVFWDM6AK74EW3HOEBI2KR",server_name="n3"} 0
nats_core_jetstream_server_total_messages{cluster_name="C1",server_id="NDHM47AD5WGBOLQEFVYH2OB44SVQNYGQVYL7HCZY5VNA3ACHYUO2RIWN",server_name="n2"} 0
nats_core_jetstream_server_total_messages{cluster_name="C1",server_id="NDILCX72GJKVF23V3XXN7MQUYDPTLODREBBIURYBD4JVGSCFTGHLLPUH",server_name="n1"} 0
nats_core_jetstream_server_total_streams{cluster_name="C1",server_id="NCZLDR5HBN5IH5UED6D4DQQWTBK2DDAE3AYVFWDM6AK74EW3HOEBI2KR",server_name="n3"} 4
nats_core_jetstream_server_total_streams{cluster_name="C1",server_id="NDHM47AD5WGBOLQEFVYH2OB44SVQNYGQVYL7HCZY5VNA3ACHYUO2RIWN",server_name="n2"} 4
nats_core_jetstream_server_total_streams{cluster_name="C1",server_id="NDILCX72GJKVF23V3XXN7MQUYDPTLODREBBIURYBD4JVGSCFTGHLLPUH",server_name="n1"} 3

Copy link
Member

@wallyqs wallyqs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks 👍

@wallyqs wallyqs merged commit 64446ca into main Jan 8, 2025
4 checks passed
@wallyqs wallyqs deleted the add-jetstream-server-stats branch January 8, 2025 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants